<template>
	<view>
		<view class="detailstype">
			<view class="detailstype_name">数量</view>
			<view class="detailstype_num">1028.12789<span>TOPS</span></view>
			<view class="detailstype_stuas">
				<view class="flex" v-if="status==1">
					<image src="../../static/wallet/success.png" mode=""></image>
					<view class="">成功</view>
				</view>
				<view class="flex" v-if="status==2">
					<image src="../../static/wallet/lose2.png" mode=""></image>
					<view class="" style="color: #FF6262;">失败</view>
				</view>
				<view class="flex" v-if="status==0">
					<image src="../../static/wallet/underway.png" mode=""></image>
					<view class="" style="color: #9999FF;">进行中</view>
				</view>
			</view>
		</view>
		<view class="copyaddress">
			<view class="copyaddress_name">充值地址</view>
			<view class="copyaddress_text flex-between">
				<view class="" style="width: 500rpx;">
					<u--text :lines="2" size='14' text="sasfafsafwefdwzxvasfwfdsdfsdfdsfsdfsdfs"></u--text>
				</view>
				<image src="../../static/wallet/copy.png" @click="copy()" mode=""></image>
			</view>
		</view>
		<view class="isonline flex-between">
			<view class="">充值网络</view>
			<view class="" style="color: #333;">TOPS - TRC20</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title:'',
				status:1
			}
		},
		onLoad(option) {
			this.title=option.title
			this.status=option.status
			uni.setNavigationBarTitle({
				title:this.title+'详情'
			})
		},
		methods: {
			copy(text){
				uni.setClipboardData({
					data: text,
					success: () => {
						this.showToast && uni.$u.toast('复制成功')
					},
					fail: () => {
						this.showToast && uni.$u.toast('复制失败')
					},
					complete: () => {
						// this.showTooltip = false
					}
				})
			}
		}
	}
</script>

<style lang="scss">
.detailstype{
	padding-top: 60rpx;
	text-align: center;
	&_name{
		font-family: PingFangSC, PingFang SC;
		font-weight: 500;
		font-size: 32rpx;
		color: #999999;
	}
	&_num{
		font-family: PingFangSC, PingFang SC;
		font-weight: 500;
		font-size: 48rpx;
		color: #333333;
		margin: 30rpx auto;
		span{
			font-weight: 500;
			font-size: 32rpx;
			color: #333333;
			margin-left: 10rpx;
		}
	}
	&_stuas{
		font-weight: 500;
		font-size: 32rpx;
		color: #55CE62;
		display: flex;
		align-items: center;
		justify-content: space-around;
		.flex{
			display: flex;
			align-items: center;
		}
		image{
			width: 31rpx;
			height: 31rpx;
			margin-right: 10rpx;
		}
	}
}
.copyaddress{
	width: 690rpx;
	height: 188rpx;
	background: #FFFFFF;
	border-radius: 24rpx;
	margin: 60rpx auto 30rpx;
	padding: 30rpx;
	box-sizing: border-box;
	&_name{
		font-family: PingFangSC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #999999;
	}
	&_text{
		font-family: PingFangSC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #333333;
		margin-top: 20rpx;
		image{
			width: 32rpx;
			height: 32rpx;
		}
	}
}
.isonline{
	width: 690rpx;
	height: 88rpx;
	background: #FFFFFF;
	border-radius: 24rpx;
	font-family: PingFangSC, PingFang SC;
	font-weight: 500;
	font-size: 28rpx;
	color: #999999;
	padding: 30rpx;
	box-sizing: border-box;
	margin: 0 auto;
	align-items: center;
}
</style>
